package com.oilsection.demo.controller;

import com.oilsection.demo.entity.indexInfo;
import com.oilsection.demo.service.IndexListService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author yangyuge
 * @description
 * @Date 2024/5/3 16:07
 */
@RestController
public class IndexListController {

    @Resource
    private IndexListService indexListService;

//    http://localhost:8080/oilsection#/index
    @CrossOrigin
    @GetMapping(value = "/getIndexList")
    public indexInfo getIndexList() {
        return indexListService.getIndexList();
    }
}
